// 异或门 xor(out, a, b)
module top_module( 
    input a, 
    input b, 
    output out );

    //assign out = a ^ b;
    assign out = (a & (~b)) | ((~a) & b);

endmodule
